/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ems.lib;


public class Staff {
    private Integer staffId;
    private String job;
    private String status;
    private String firstName;
    private String lastName;
    private String username;
    private String password;    

    public Staff() {
    }

    public Staff(Integer staffId) {
        this.staffId = staffId;
    }

    public Staff(String job) {
        this.job = job;
    }

    public Staff(Integer staffId, String firstName, String lastName,
            String job, String status, String username, String password) {
        this.staffId = staffId;
        this.job = job;
        this.status = status;
        this.username = username;
        this.password = password;
        this.firstName = firstName;
        this.lastName = lastName;        
    }

    public Staff(Integer staffId, String job, String status, String username, String password) {
        this.staffId = staffId;
        this.job = job;
        this.status = status;
        this.username = username;
        this.password = password;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (staffId != null ? staffId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Staff)) {
            return false;
        }
        Staff other = (Staff) object;
        if ((this.staffId == null && other.staffId != null) || (this.staffId != null && !this.staffId.equals(other.staffId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ems.lib.Staff[staffId=" + staffId + "]";
    }

    

}
